# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2024/3/24
desc: 
sample: 
"""
numbers = 1

while numbers <= 3:
    name = input('请输入名字')
    pwd = input('请输入密码')
    if name == 'root' and pwd == 'root':
        print('登录正常')
        break
    else:
        print(f'输入错误，剩余次数{3 - numbers}')
        numbers += 1
